<template>
  <div>
    <div class="nav-bar nav-back">
      <div class="nav-icon" @click="$router.back()">
        <img src="../../../assets/img/navbar/ic_back_left.png" alt="" />
      </div>
      <div class="nav-title">{{title}}</div>
      <div class="nav-btn"></div>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    title: {
      type: String,
      default: ''
    }
  }
}
</script>

<style scoped>
.nav-back {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #288DFF;
  height: 1.173333rem;
}

.nav-bar {
  width: 100%;
  height: 1.173333rem;
  box-sizing: border-box;
  padding: 0 .426667rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-icon {
  width: 1.76rem;
  display: flex;
  align-items: center;
}

.nav-icon img {
  width: .533333rem;
  height: .533333rem;
}

.nav-title {
  flex: 1;
  text-align: center;
  font-size: .48rem;
  font-weight: 700;
  color: #fff;
}

.nav-btn {
  width: 1.76rem;
}
</style>